#ifndef WORKSHEETINFO_H
#define WORKSHEETINFO_H

#include "BaseInclude.h"
#include <QDialog>
namespace Ui{ class QWorksheetInfo; }
class QEditTableDelegate; 
class QWorksheetInfo : public QDialog
{
	Q_OBJECT

public:
	QWorksheetInfo();
	QWorksheetInfo::QWorksheetInfo(const QString & sheetId);
	
	~QWorksheetInfo();
	const QString getCurSheetTdjhID();
	bool initDialog();
	bool initTableView();
private slots:
	void on_btnClose_clicked();
	void on_btnSave_clicked();
	void on_btnAddRecord_clicked();
	void on_btnDel_clicked();
	void uniteTdjhId();

private:
	Ui::QWorksheetInfo * ui;
	QString m_curSelTdjhId;

	//QWorksheetInfo * ua;
private:
	QRecordCheckTableModel *pTableModel;
	QEditTableDelegate *pEditTableDelegate;
};

#endif // WORKSHEETINFO_H

class  QWorksheetInfoTableDelegate : public QEditTableDelegate
{
	Q_OBJECT

public:

	QWorksheetInfoTableDelegate(QObject *parent = 0);
	~QWorksheetInfoTableDelegate();

	virtual void InitComboBox(const QModelIndex &index, QComboBox * editor) const;
};